package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface PictureService {

	public Picture savePicture(Picture picture);

	public Set<Picture> loadPictures();

	public Set<Picture> loadReferencePictures(Set<Picture> pictures);

	public Set<Picture> loadPicturesByIdSet(Set<Integer> picturesId);

	public Map<String, ?> loadPictureObjectReferencedSet(Picture picture);

	public Map<String, ?> loadPictureClassReferencedSet(Picture picture);

	public void deletePicture(Picture picture);

	public void deletePictures(Set<Integer> deletePicturesId);

	public List<Picture> findAllPictures(Integer startResult, Integer maxRows);

	public Picture findPictureByPrimaryKey(Integer id);

	public Integer countPictures();

	public Integer countPictures(CmiPagination page);

	public Integer countPicturesByName(String queryName);

	public Integer countPicturesByDetachedCriteria(CmiPagination page);

}
